class Solution:
    def multiply(self, num1: str, num2: str) -> str:
        if num1 == "0" or num2 == "0":
            return '0'
        list1 = []
        list2 = []
        res = 0
        for i in range(len(list(num1))):
            list1.append(ord(num1[i]) - 48)
        for i in range(len(list(num2))):
            list2.append(ord(num2[i]) - 48)
        for index1, i in enumerate(list1[::-1]):
            for index2, j in enumerate(list2[::-1]):
                res += i * j * 10 ** index1 * 10 ** index2

        return str(res)


lll = Solution()
print(lll.multiply("123", "456"))
